The following instructions explain how to reproduce the results presented in the paper “Does Party-System Fragmentation Affect the Quality of Democracy?”

The analyses were run using Stata 17, and the plots were drawn using RStudio 2021.09.2. The version of the analyses that is included in the published version of the paper was last run in February 2023.

We include all pre-processing do-files in the replication package, so that researchers can fully replicate our analyses from secondary sources of data.

The pre-processing files start with letter a. They are: a1_Updating data from Dinas et al 2015_BJPS; a2_party-level data_preprocessing_BJPS; and a3_election-level data_preprocessing_BJPS.

The actual analyses start with the letter b. They are: b1_analyses_election level; b2_manipulations on results dataset; b3_analyses_party level.

These analyses produce datasets with findings which are then used in R as the basis for plots. The R scripts include the code to produce each of the figures in the text.

Finally, the R script table3.R runs the comparisons of coefficients shown in Table 3.

All files run without need to run the previous file. This means that one can open any given script or do file and replicate that section of the analysis in isolation.
